#!/bin/bash

# sudo iw wlan0 scan | grep SSID
wpa_cli -iwlan0 scan_results | grep SEEED

[ $? -eq 0 ] && { echo "Wi-Fi Test PASS"; exit 0; }

echo "Wi-Fi Test FAIL"
exit 2
